package com.zszq.ms.bigmodeltest.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zszq.ms.bigmodeltest.entity.AiTaskResult;
import com.zszq.ms.bigmodeltest.mapper.AiTaskResultMapper;
import com.zszq.ms.bigmodeltest.service.AiTaskResultService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ms
 * @since 2025-03-31
 */
@Service
public class AiTaskResultImpl extends ServiceImpl<AiTaskResultMapper, AiTaskResult> implements AiTaskResultService {

    @Override
    public List<AiTaskResult> selectListByTaskId(String taskId) {
        LambdaQueryWrapper<AiTaskResult> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(AiTaskResult::getTaskId, taskId);
        return baseMapper.selectList(lambdaQueryWrapper);
    }
}
